import request from '@/utils/request'

// 查询发票明细列表
export function listInvoicepart(query) {
  return request({
    url: '/Invoice/invoicepart/list',
    method: 'get',
    params: query
  })
}

// 查询发票明细详细
export function getInvoicepart(partId) {
  return request({
    url: '/Invoice/invoicepart/' + partId,
    method: 'get'
  })
}

// 新增发票明细
export function addInvoicepart(data) {
  return request({
    url: '/Invoice/invoicepart',
    method: 'post',
    data: data
  })
}

// 修改发票明细
export function updateInvoicepart(data) {
  return request({
    url: '/Invoice/invoicepart',
    method: 'put',
    data: data
  })
}

// 删除发票明细
export function delInvoicepart(partId) {
  return request({
    url: '/Invoice/invoicepart/' + partId,
    method: 'delete'
  })
}
